package com.arpa.oms.service.impl;


import cn.hutool.core.collection.IterUtil;
import com.arpa.ntocc.common.common.cache.PartyCache;
import com.arpa.ntocc.common.common.exception.ServiceException;
import com.arpa.ntocc.common.common.util.UserUtil;
import com.arpa.oms.domain.dto.OmsCaptureOrderRecordDTO;
import com.arpa.oms.domain.entity.OmsCaptureOrderRecord;
import com.arpa.oms.domain.vo.OmsCaptureOrderRecordVO;
import com.arpa.oms.mapper.OmsCaptureOrderRecordMapper;
import com.arpa.oms.service.IOmsCaptureOrderRecordService;
import com.arpa.wms.common.util.UUIDUtil;
import com.arpa.wms.domain.enums.StatusEnum;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: rfwang
 * @Date 2021/8/11
 * @Description:
 */
@Service
public class OmsCaptureOrderRecordImpl extends ServiceImpl<OmsCaptureOrderRecordMapper, OmsCaptureOrderRecord> implements IOmsCaptureOrderRecordService {

    /**
     * 查询列表
     *
     * @param orderSetDTO
     * @return
     */
    @Override
    public List<OmsCaptureOrderRecordVO> queryList(OmsCaptureOrderRecordDTO orderSetDTO) {
        List<OmsCaptureOrderRecordVO> customerVOList = baseMapper.queryList(orderSetDTO);
        return customerVOList;
    }

    /**
     * 查询合计,包含总数
     *
     * @param orderSetDTO
     * @return
     */
    @Override
    public OmsCaptureOrderRecordVO queryListSum(OmsCaptureOrderRecordDTO orderSetDTO) {
        OmsCaptureOrderRecordVO customerVO = baseMapper.queryListSum(orderSetDTO);
        return customerVO;
    }

}
